package com.self;

public class StringTest {
    public static void main(String[] args) {
        String a = "丑:醜:19985";
        String[] split = a.split(":");
        System.out.println(split[0]);

        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("我");
        stringBuffer.append("是");
        for (int i = 0; i < stringBuffer.length(); i++) {
            System.out.println(stringBuffer.charAt(i));
        }

/*        int x = 10;
        String.valueOf(x)  // int 转String
        String b = "10";
        Integer.valueOf(10); // String 转Integer*/
    }
}
